/**
 * Created by chengxiaolong on 2016/6/22.
 */
package com.invexer.service.util {
import mx.managers.CursorManager;

public class CursorUtil {
    public static var _requestCount:int = 0;
    public static function showBusyCursor():void{
        _requestCount++;

        if(_requestCount>1) return;

        CursorManager.setBusyCursor();
    }

    public static function removeBusyCursor():void{
        _requestCount--;
        if(_requestCount==0)
            CursorManager.removeBusyCursor();
    }
}
}
